<?php

namespace App\Models;

class NetCourse extends BaseModel
{
    protected $guarded = [];

    protected $casts = [
        'components' => 'json',
        'course_column_ids' => 'json',
    ];

    /**
     * @param $v
     * @return mixed
     */
    public function getProvinceAttribute($v)
    {
        return json_decode($v);
    }
}
